import request from '@/utils/request'

// 查询积分兑换记录列表
export function listPointRecord(query) {
  return request({
    url: '/pointRecord/pointRecord/list',
    method: 'get',
    params: query
  })
}

// 查询积分兑换记录详细
export function getPointRecord(id) {
  return request({
    url: '/pointRecord/pointRecord/' + id,
    method: 'get'
  })
}

// 新增积分兑换记录
export function addPointRecord(data) {
  return request({
    url: '/pointRecord/pointRecord',
    method: 'post',
    data: data
  })
}

// 修改积分兑换记录
export function updatePointRecord(data) {
  return request({
    url: '/pointRecord/pointRecord',
    method: 'put',
    data: data
  })
}

// 删除积分兑换记录
export function delPointRecord(id) {
  return request({
    url: '/pointRecord/pointRecord/' + id,
    method: 'delete'
  })
}
